<template>
  <p>{{ name }}</p>
  <button @click="handleClick">修改 name</button>
</template>

<script>
// 需求：点击按钮修改 name
import { ref } from 'vue'
export default {
  setup() {
    const name = ref('迪丽热巴')
    const handleClick = () => {
      name.value = '阿里巴巴'
    }
    return {
      name,
      handleClick,
    }
  },
}
</script>
